import { request } from '@@/exports';
import { stringify } from 'qs';

export async function testGet(params: any): Promise<any> {
  return request(`/api/v1/test?${stringify(params)}`);
}

export async function testPost(params: any): Promise<any> {
  return request('/api/v1/test', { method: 'post', data: params }); //get请求参数为params，post为data
}

export default {
  testGet,
  testPost,
};
